[mysql]
port={{ mysql_port }}
socket={{ mysql_basedir }}/mysql.sock
default-character-set=utf8

[mysqld_safe]
log-error={{ mysql_datadir }}/mysql.error

[mysqld]
port={{ mysql_port }}
user={{ mysql_run_user }}
basedir={{ mysql_basedir }}
datadir={{ mysql_datadir }}
socket={{ mysql_basedir }}/mysql.sock
pid-file={{ mysql_datadir }}/mysql.pid
character-set-server=utf8
skip-name-resolve
lower_case_table_names=1
query_cache_size=0
transaction_isolation=READ-COMMITTED
tmp_table_size=128M
max_heap_table_size=96M
max_connections=1000
max_connect_errors=6000
long_query_time=1
innodb_buffer_pool_size=8G
innodb_flush_log_at_trx_commit=0
innodb_log_buffer_size=8M
innodb_log_file_size=128M
innodb_log_files_in_group=2
innodb_file_per_table=1
innodb_flush_method=O_DIRECT
innodb_file_format=Barracuda
innodb_write_io_threads=8
innodb_read_io_threads=4
innodb_doublewrite=0
innodb_purge_threads=1
innodb_stats_on_metadata=OFF
innodb_io_capacity=1000
log-bin-trust-function-creators=1
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER
event_scheduler=on
max_allowed_packet=2G
show_compatibility_56=on
